package factory.produce;

import factory.abs.FactoryBuilder;
import factory.abs.extend.ColorFactory;
import factory.abs.extend.ShapeFactory;

public class FactoryProduce {
    public static FactoryBuilder getFactory(String factory) {
        if (factory.equalsIgnoreCase("color")) {
            return new ColorFactory();
        } else if (factory.equalsIgnoreCase("shape")) {
            return new ShapeFactory();
        }
        return null;
    }

}
